|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
june 2011 doc id 15699 rev 7 1/50 1 stm8t141 single-channel capacitive sensor for touch or proximity detection with shielded sensing electrode features touch or proximity detection (a few centimeters) built-in driven shield function: ? enhance proximity detection ? protect sensing electrode from noise interference ultra-low power modes suitable for battery applications (11 a in extreme low power mode) on-chip integrated voltage regulator environment compensation filter user programmable options include: ? four detection thresholds ? four output modes ? four low power modes ? reference freeze timeout minimal external components applications consumer electronics power-critical and battery applications ? wake-up on proximity home and office appliances ? find-in-the-dark (fitd) applications using proximity detection ? sanitary ware and white goods flameproof human interface devices for use in hazardous environments table 1. device summary feature stm8t141 operating supply voltage 2.0 v to 5.5 v supported interface single key state output operating temperature ?40 to +85 c packages 8-pin so 8-pin ufdfpn so8 ufdfpn8 (2 x 3 mm) (narrow) www.st.com
contents stm8t141 2/50 doc id 15699 rev 7 contents 1 description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2 block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 3 pin descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 4 stm8t proxsense technology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 4.1 capacitive sensing overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 4.2 charge transfer acquisition principle . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 5 stm8t processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 5.1 signal and reference calculation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 5.2 determining touch/proximity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 5.3 environment compensation filter (ecf) . . . . . . . . . . . . . . . . . . . . . . . . . . 13 5.3.1 ecf principle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 5.3.2 reference freeze timeout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 5.3.3 debounce filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 6 typical application diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 7 device operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 7.1 option byte description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 7.2 tout/pout output mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 7.2.1 active . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 7.2.2 toggle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 7.2.3 3-second latch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 7.2.4 30-second latch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 7.3 detection threshold . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 7.4 power modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 7.4.1 normal power mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 7.4.2 low power mode with zoom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 7.4.3 extreme low power mode with zoom . . . . . . . . . . . . . . . . . . . . . . . . . . 24 7.4.4 extreme low power mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 7.5 charge transfer frequency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 stm8t141 contents doc id 15699 rev 7 3/50 7.6 sampling period . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 8 design guidelines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 8.1 shield function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 8.1.1 shield application example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 8.2 sensitivity adjustment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 8.2.1 c s influence on sensitivity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 8.2.2 pcb layout and construction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 8.3 influence of power supply variation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 9 electrical characteristi cs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 9.1 parameter conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 9.1.1 minimum and maximum values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 9.1.2 typical values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 9.1.3 typical curves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 9.1.4 loading capacitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 9.2 absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 9.3 operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 9.3.1 general operating conditions and supply characteristics . . . . . . . . . . . 30 9.3.2 average current consumption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 9.3.3 output characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 9.4 regulator and reference voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 9.5 capacitive sensing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 9.6 emc characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 9.6.1 functional ems (ele ctromagnetic susceptib ility) . . . . . . . . . . . . . . . . . . 35 9.6.2 prequalification trials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 9.6.3 electromagnetic interference (emi) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 9.6.4 absolute maximum ratings (electrical sensitivity) . . . . . . . . . . . . . . . . . 36 9.6.5 electrostatic discharge (esd) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 9.6.6 static latchup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 10 package characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 10.1 package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 10.1.1 so8 package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 10.1.2 ufdfpn8 package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 10.2 package thermal characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 10.2.1 reference document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 contents stm8t141 4/50 doc id 15699 rev 7 11 ordering information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 11.1 stm8t141 ordering information scheme . . . . . . . . . . . . . . . . . . . . . . . . . 42 11.2 orderable favorite device lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 11.3 in-factory option byte programming service . . . . . . . . . . . . . . . . . . . . . . . 43 12 stm8t141 development tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 13 revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 stm8t141 list of tables doc id 15699 rev 7 5/50 list of tables table 1. device summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 table 2. stm8t141 pin descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 table 3. explanation of ecf example 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 table 4. explanation of ecf example 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 table 5. option bytes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 table 6. option byte description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 table 7. detection thresholds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 table 8. low power period according to selected power mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 table 9. voltage characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 table 10. current characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 table 11. thermal characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 table 12. operating characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 table 13. average current consumption without shield . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 table 14. output pin characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 table 15. regulator and reference voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 table 16. general capacitive sensing characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 table 17. response times . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 table 18. external sensing component characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 table 19. ems data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 table 20. emi data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 table 21. esd absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 table 22. electrical sensitivities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 table 23. 8-lead plastic small outline - package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 table 24. 8-lead ultra thin fine pitch dual flat - package mechanical data . . . . . . . . . . . . . . . . . . . . . 40 table 25. thermal characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 table 26. orderable favorite device lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 table 27. ordering information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 table 28. document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 list of figures stm8t141 6/50 doc id 15699 rev 7 list of figures figure 1. stm8t141 block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 figure 2. s08 pinout. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 figure 3. ufdfpn8 pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 figure 4. coupling with hand increases the capacitance of the sensing electrode . . . . . . . . . . . . . . 10 figure 5. stm8t measuring circuitry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 figure 6. conversion period examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 figure 7. environmental compensation filter (ecf) example 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 figure 8. environmental compensation filter (ecf) example 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 figure 9. reference freeze timeout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 figure 10. typical application shematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 figure 11. possible load configurations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 figure 12. active mode output operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 figure 13. toggle mode output operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 figure 14. 3-second latch mode output operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1 figure 15. 30-second latch mode output operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 figure 16. charge cycle timing diagram in normal power mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 figure 17. charge cycle timing diagram in low power mode with zoom . . . . . . . . . . . . . . . . . . . . . . 24 figure 18. charge cycle timing diagram in extreme low power mode with zoom . . . . . . . . . . . . . . . 24 figure 19. charge cycle timing diagram in extreme low power mode . . . . . . . . . . . . . . . . . . . . . . . 25 figure 20. connecting the shield (coaxial cable implementation) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 figure 21. pin loading conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 figure 22. i dd average current consumption vs r shield . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 figure 23. sigma variation across v dd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 figure 24. so8-lead plastic small outline - package outline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 figure 25. ufdfpn8-lead ultra thin fine pitch dual flat package (mlp) package outline . . . . . . . . . . 40 figure 26. stm8t141 ordering information scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 figure 27. stm8t141-eval evaluation kit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 figure 28. stm8t141 blank module box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 figure 29. stm8t141-eval programming tool. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 stm8t141 description doc id 15699 rev 7 7/50 1 description the stm8t141 is a proxsense? single-channel, fully integrated, charge-transfer, capacitive sensor that is designed to repl ace conventional electromechanical switches in cost-sensitive applications. the stm8t141 is offered in 8-pin packages and is ideally suited for 1-button applications. it can be configured either in touch or proximity sensing mode for wake-up or backlighting on actuation. the extremely low current consumption makes it an ideal solution for battery-powered applications. the device features an internal voltage regulator to enhance detection sensitivity and stability. the stm8t141 touchpad can sense through almost any dielectric and can thereby contain the electronics in a sealed environment. the stm8t141 also inco rporates the advantages of using a driven shie lding capability. this makes it possible to separate the sealed electronics from the sensing electrode. the shield feature enables the designer to protect part of the sensing element from unwanted environmental interference and enhances proxim ity detection when used with battery (dc) applications. note: proxsense? is a trademark of azoteq. block diagram stm8t141 8/50 doc id 15699 rev 7 2 block diagram figure 1. stm8t141 block diagram rc oscillator the 500-khz rc oscillator is an internal fixed frequency osc illator used to supply the clock to the mcu system engine. power-on-reset (por) the por generates a reset signal depending on the power supply level and the clock pulses received from the rc oscillator. voltage regulator the voltage regulator has an internal compar ison and feedback circuit that ensures the v reg voltage is kept stable and constant. the regulator requires an external smoothing capacitor. mcu system engine the mcu system engine controls the capaciti ve sensing engine and processes touch and proximity detection signals. proxsense engine the proxsense engine circuitry employs a c harge-transfer method to detect changes in capacitance. 500 khz rc o s cill a tor c x v ss tout/pout v dd por v reg a i17207 volt a ge reg u l a tor mcu s y s tem engine c s s hldout s hldin proxsense engine stm8t141 pin descriptions doc id 15699 rev 7 9/50 3 pin descriptions figure 2. s08 pinout figure 3. ufdfpn8 pinout table 2. stm8t141 pin descriptions pin no. pin type (1) 1. i: input pin, od: open drain, pp: output push-pull pi n, s: supply pin and sns: capacitive sensing pin. pin name pin function so8 ufdfpn8 1sv ss ground 2snsc s capacitive sensing channel pin to c s (2) 2. use cog or npo capacitor type. 3snsc x capacitive sensing channel pin to r x 4ishldin (3) 3. if the active shield is unused, please connect this pin to v ss . shield input 5sv reg internal voltage regulator output (4) 4. requires a low esr, 1f capacitor to ground. this output must not be used to power other devices. 6 od shldout shield output 7sv dd supply voltage 8pptout/pout touch/proximity (5) output ? (active high) 5. depending on the value of bits [1:0] of opt0. ! ) 6 2 % ' 3 ( , $ ) . 3 ( , $ / 5 4 6 $ $ # 3 6 3 3 4 / 5 4 0 / 5 4 # 8 ! ) 6 2 % ' 3 ( , $ ) . 3 ( , $ / 5 4 6 $ $ # 3 6 3 3 4 / 5 4 0 / 5 4 # 8 stm8t proxsense technology stm8t141 10/50 doc id 15699 rev 7 4 stm8t proxsense technology 4.1 capacitive sensing overview a capacitance exists between any reference point and ground as long as they are electrically isolated. if this reference point is a s ensing electrode, it can help to think of it as a capacitor. the positive electrode of the capacitor is the sensing electrode, and the negative electrode is formed by the surrounding area (virtual ground reference in figure 4 ). figure 4. coupling with hand increases the capacitance of the sensing electrode when a conductive object is brought into proximity of the sensing electrode, coupling appears between them, and the capacitance of the sensing electrode relative to ground increases. for example, a human hand raises the capacitance of the sensing electrode as it approaches it. touching the dielectric panel that protects the electrode increases its capacitance significantly. 4.2 charge transfer acquisition principle to measure changes in the elec trode capacitance, stm8t devices employ bursts of charge- transfer cycles. the measuring circuitry is connected to the c x pin. it is composed of a serial resistor r x plus the sensing electrode itself of equivalent capacitance c x (see figure 5 ). the sensing electrode can be made of any electrically condu ctive material, such as copper on pcbs, or transparent conductive material like indium tin oxide (ito) deposited on glass or plexiglas. the dielectric panel usually provides a high degree of isolation to prevent esd discharge from reaching the stm8t touch sensing controller. connecting the serial resistor (r x ) to the c x pin improves esd immunity even more. c t lower capacitance c x higher capacitance sensing electrode stm8t141 stm8t proxsense technology doc id 15699 rev 7 11/50 figure 5. stm8t measuring circuitry 1. r x must be placed as close as possible to the stm8t device. the principle of charge transfer is to charge the electrode capacitance (c x ) using a stable power supply. when c x is fully charged, part of the accumulated charge is transferred from c x to an external sampling capacitance, referred to as c s . the transfer cycle is repeated until the voltage across the sampling capacitor c s reaches the end of acquisition reference voltage (v trip ). the change in the electrode capacitance is detected by measuring the number of transfer cycles composing a burst (see figure 6 ). throughout this document the following naming conventions apply: the charge transfer period ( t transfer ) refers to the charging of c x and the subsequent transfer of the charge to c s . the burst cycle duration (t burst ) is the time required to charge c s to v trip . the sampling period (t sampling ) is the acquisition rate. figure 6. conversion period examples ai15249 a c x c x (~20 pf) c t (~5 pf) e a rth s eri a l re s i s tor (r x ) (1) s tm 8 t141 c s c s ( a few nf) m s t t 3 ! - 0 , ) . ' # 3 ! i t " 5 2 3 4 6 2 % ' 6 4 2 ) 0 t 4 2 ! . 3 & |